﻿<include file="Public/head"/>
    <div class="container-fluid">
        <div class="row-fluid">
            <h4>自动回复管理</h4>
            <div class="add"><a class="btn btn-success" href="{:U('Reply/add')}">新增</a></div>
            <div class="w">
                <div class="span12">
                    <table class="table table-condensed table-bordered table-hover tab">
                        <thead>
                            <tr>
                                <th>ID</th>
                                <th>类型</th>
                                <th>关键字</th>
                                <th>回复内容</th>
                                <th>操作</th>
                            </tr>
                            <volist name="data" id="vo">
                                <tr>
                                    <td>{$vo.id}</td>
                                    <td>
                                        <if condition="$vo.type eq 1">
                                            文本
                                        <elseif condition="$vo.type eq 2"/>
                                            图文
                                        <else/>
                                            事件
                                        </if>
                                    </td>
                                    <td>{$vo.keyword}</td>
                                    <td>{$vo.content}</td>
                                    <td><a href="{:U('Reply/edit')}?id={$vo.id}">修改</a>　<a href="{:U('Reply/del')}?id={$vo.id}" onclick="return confirm('确认要删除吗？')">删除</a></td>
                                </tr>
                            </volist>
                        </thead>
                        <tbody id="tbody"></tbody>
                    </table>
                    <div id="page" class="tr">{$page}</div>
                </div>
            </div>
        </div>
    </div>

<include file="Public/foot"/>
